/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package gui.event.vatnuoi;

import gui.event.ulti.Util;
import java.awt.print.PrinterException;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JTable;

/**
 *
 * @author nv_ca@live.com
 */
public class VNChiTietDlg_evt {

    public static final void btnInActionPerformed(JTable tbl) {
        try {
            tbl.print();
        } catch (PrinterException ex) {
            Logger.getLogger(VNChiTietDlg_evt.class.getName()).log(Level.SEVERE, null, ex);
        }
    }

    public static final void btnCloseActionPerformed(JDialog dlg) {
        dlg.dispose();
    }

    public static final void tblVatNuoiFocusGained(List<JButton> listButtons) {
        Util.enableListButtons(listButtons);
    }

    public static final void tblVatNuoiFocusLost(List<JButton> listButtons) {
        Util.disableListButtons(listButtons);
    }
}
